{
  "swagger": "2.0",
  "info": {
    "version": "v1",
    "title": "/*(Example DB Web API)*/",
    "description": "/*(An example of DbWebApi with Oracle PL/SQL Associative Array Parameters)*/"
  },
  "host": "/*(dbwebapi.domain.net)*/",
  "basePath": "/*(/oradev)*/",
  "schemes": [
    "http",
    "https"
  ],
  "paths": {
    "/*(/test_schema.prj_package.your_sp)*/": {
      "post": {
        "tags": [
          "Service"
        ],
        "summary": "/*(A short summary of what the operation does)*/",
        "operationId": "/*(your_sp)*/",
        "consumes": [
          "application/json",
          "text/json"
        ],
        "produces": [
          "application/json",
          "text/json",
          "application/xml",
          "text/xml",
          "application/xlsx",
          "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
          "application/ms-excel",
          "text/csv",
          "application/javascript"
        ],
        "parameters": [
          {
            "in": "body",
            "name": "request",
            "description": "/*(A brief description of the input parameter)*/",
            "required": true,
            "schema": {
              "$ref": "#/definitions/inputPayloadObject"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object",
              "properties": {
                "ResultSets": {
                  "type": "array",
                  "items": {
                    "$ref": "#/definitions/resultSet"
                  }
                },
                "OutputParameters": {
                  "$ref": "#/definitions/outputParametersObject"
                },
                "ReturnValue": {
                  "type": "object",
                  "example": "null"
                }
              }
            }
          }
        }
      }
    }
  },
  "definitions": {
    "inputPayloadObject": {
      "type": "object",
      "properties": {
        /*(
        "inArrayParam": {
          "description": "A brief description of the array (not accept null or empty array)",
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 32
          },
          "example": [
            "AAA",
            "BBBB",
            "CCCCC",
            "DDDDDD"
          ]
        },
        "inSimpleParam": {
          "description": "A brief description of the simple value",
          "type": "string",
          "example": "A Category",
          "maxLength": 16
        }
        )*/
      }
    },
    "resultSet": {
      "type": "array",
      "items": {
        "$ref": "#/definitions/eachRecord"
      }
      /*(
      ,
      "example": [
        {
          "RequestItem": "AAA",
          "ResponseProperty1": "zzzzzz"
        },
        {
          "RequestItem": "BBBB",
          "ResponseProperty1": "yyyyy"
        },
        {
          "RequestItem": "CCCCC",
          "ResponseProperty1": "xxxx"
        },
        {
          "RequestItem": "DDDDDD",
          "ResponseProperty1": "www"
        }
      ]
      )*/
    },
    "eachRecord": {
      "type": "object",
      "properties": {
        /*(
        "RequestItem": {
          "type": "string"
        },
        "ResponseProperty1": {
          "type": "string"
        }
        )*/
      }
    },
    "outputParametersObject": {
      "type": "object",
      "properties": {
        /*(
        "REF_ID": {
          "type": "integer",
          "example": 1001
        },
        )*/
        "/*(RC1)*/": {
          "type": "object",
          "example": "null"
        }
      }
    }
  }
}
